/**
 * admui-basic v2.1.0 (http://www.admui.com/)
 * Copyright 2015-2019 Admui Team
 * Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
 */
(function(window, document, $) {
  'use strict';

  /* global toastr */

  window.App.extend({
    run: function() {
      var table = $('#dataTableExample').DataTable($.concatCpt('dataTable'));
      $('#admui-pageContent').on('click', '#DTSubmitBtn', function() {
        var data = table.$('input, select').serialize();
        toastr.info('将向服务器提交以下数据：<br>' + data.substr(0, 120) + '...');
      });
    }
  });

  window.App.run();
})(window, document, jQuery);
